<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cierre-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>20,'maxlength'=>25)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date'); ?>
		<?php echo $form->textField($model,'date',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'date'); ?>
	</div>

    	<div class="row">

                <?php echo $form->label(titulos::model(),'carrera'); ?>
                <?php 
                $estadosArray = CHtml::listData(titulos::model()->findAll(),'cod','cod'); 
               //$estadosArray['']='TODOS';
                echo $form->DropDownList($model,'carrera',$estadosArray);?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'acta'); ?>
		<?php echo $form->textField($model,'acta',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'acta'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inciso'); ?>
		<?php echo $form->textField($model,'inciso',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'inciso'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'subinciso'); ?>
		<?php echo $form->textField($model,'subinciso',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'subinciso'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'punto'); ?>
		<?php echo $form->textField($model,'punto',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'punto'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'secretaria'); ?>
		<?php echo $form->textField($model,'secretaria',array('size'=>40,'maxlength'=>120)); ?>
		<?php echo $form->error($model,'secretaria'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'director'); ?>
		<?php echo $form->textField($model,'director',array('size'=>40,'maxlength'=>300)); ?>
		<?php echo $form->error($model,'director'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->